package Book;

public class BookList {
    private Book[] bookList = new Book[10];
    private int usedSize;

    public BookList(){
        bookList[0] = new Book("三国演义", "吴承恩", "历史", 12.4, false);
        bookList[1] = new Book("西游记", "罗贯中", "神话", 15.6, false);
        bookList[2] = new Book("红楼梦", "曹雪芹", "爱情", 23.1, false);

        usedSize = 3;
    }

    public void setBookList(int pos, Book book) {
        bookList[pos] = book;
    }

    public Book[] getBookList() {
        return bookList;
    }

    public int getUsedSize() {
        return this.usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
}
